#include"my_stdio.h"
#include<string.h>
#include<unistd.h>
int main()
{
	Myfile* fp = my_fopen("log.txt","w");
	if(fp == NULL) return 1;

	const char* s = "Hello World!\n";
	int cnt = 10;
	
	while(cnt--)
	{
		my_fwrite(s ,strlen(s) ,fp);
		sleep(1);
	}
	
	my_fclose(fp);
	
	
	return 0;
}
